<?php session_start(); ?>
<?php include("header.php"); ?>

<!-- Logout Page -->
<article>
	<header><h1>Logout</h1>
		<?php session_destroy(); echo "You've logged out."; ?>
		<p>We'll just automatically redirect you to the <a href="index.php">main page</a> in 10 seconds.</p>
	</header>
</article>

<script>
	setTimeout(function () { 
		$("html").animate({ opacity: 0, backgroundColor: '#000' }, function() {
			window.location.href= './index.php'; 
		})
	},10000);
</script>
<?php include("footer.php"); ?>